How to // Comment
Correct call to undefined function mysql_connect // Corriger l'appel à la fonction non définie mysql_connect

Wamp

[Wamp] Correct call to undefined function mysql_connect



/!\ The `mysql_` extension was removed FOREVER from PHP 7.0!

So if you are using PHP7.2 that would explain this error.
0. You have two solutions:
  • Change your code and use PDO
  • Change the Wamp PHP version
1. To change your Wamp PHP version:
  • Left click on the "tray icon" (wampmanager) -> PHP-> Version -> PHP5.6.40


How to

[How to] Corriger l'appel à la fonction non définie mysql_connect



/!\ L'extension `mysql_` a été supprimée à jamais de PHP 7.0 !

Donc, si vous utilisez PHP 7.2, cela expliquerait cette erreur.
0. Vous avez deux solutions :
  • Changer votre code et utiliser PDO
  • Changer la version de Wamp PHP
1.Pour changer votre version de Wamp PHP :
  • Clic gauche sur "l'icône de la barre des tâches" (wampmanager) -> PHP-> Version -> PHP5.6.40